CentOS7 yum安装报错“Could not resolve host: mirrorlist.centos.org; Name or service not known“之解决办法(换源)

【解决办法】看到报错日志中加粗的字体,命令行ping不通。试着pingwww.baidu.com是正常的,说明DNS解析没问题。基本确认是yum源的问题。_couldnotresolvehost:mirro...